#!/bin/bash
IFS_OLD=$IFS
IFS=-
FILE_NAME=$1

for fruit in `cat $FILE_NAME`
do
   echo "I have a fruit => $fruit"
done
IFS=$IFS_OLD
